From: Jonas Dreßler Date: Tue, 26 Apr 2022 17:01:14 +0000 (+0200) Subject: status/network: Also show disabled icon when wwan is not connected X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~480^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=682629e603b11eecb8c4a0b797ddbd56ab387c27;p=gnome-shell.git status/network: Also show disabled icon when wwan is not connected Commit ca4f6e01234e9ef7f1315fcb13b89423da670dc7 was supposed to show the "cellular-disabled" icon when wwan is disabled. For wwan, just like for bluetooth wwan networks, we probably want this to include the "not connected" state, because disconnecting from cellular service de-facto means disabling it. So switch the check to show the "cellular-disabled" icon to also use the icon whether there's no active connection, not only when the wwan device is turned off. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5401 Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 05f27fcdf..289c323ed 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -597,7 +597,7 @@ var NMDeviceModem = class extends NMConnectionDevice { } _getMenuIcon() { - if (!this._client.wwan_enabled) + if (!this._device.active_connection) return 'network-cellular-disabled-symbolic'; return this.getIndicatorIcon();